/*    */ package com.hp.bon.logreverse;
/*    */ 
/*    */ import org.slf4j.Logger;
/*    */ import org.slf4j.LoggerFactory;
/*    */ 
/*    */ public class BaseMsgProcess
/*    */ {
/*  8 */   private static final Logger LOG = LoggerFactory.getLogger(BaseMsgProcess.class);
/*    */   long start;
/*    */ 
/*    */   public void beginFileTrigger(LogFileRead logFileRead)
/*    */   {
/* 12 */     LOG.info("[" + logFileRead.getFileName() + "] >> begin read");
/* 13 */     this.start = System.currentTimeMillis();
/*    */   }
/*    */ 
/*    */   public boolean processMsg(MsgInfo messageFromLog) {
/* 17 */     return true;
/*    */   }
/*    */ 
/*    */   public void endFileTrigger(LogFileRead logFileRead) {
/* 21 */     LOG.info("[" + logFileRead.getFileName() + "] << end, ms=" + (System.currentTimeMillis() - this.start) + 
/* 22 */       ",lineSeq=" + logFileRead.getLineSeq() + ",success=" + logFileRead.getSuccessNum() + ",exception=" + logFileRead.getExceptionNum() + ",filter=" + logFileRead.getFilteredNum());
/*    */   }
/*    */ }

/* Location:           C:\Users\think\Desktop\sgw_2.1.jar
 * Qualified Name:     com.hp.bon.logreverse.BaseMsgProcess
 * JD-Core Version:    0.6.1
 */